package com.daz.teacher.studentPlan.action;

import java.util.HashMap;
import java.util.List;
import java.util.Map;


import org.springframework.beans.factory.annotation.Autowired;

import com.daz.student.lifePlan.pojo.LifePlanPojo;
import com.daz.student.lifePlan.server.ILifePlanSV;
import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class StudentPlanAction extends ActionSupport{
	@Autowired
	private ILifePlanSV lifePlanSV;
	public String studentId;
	public Boolean isSuccess;
	public List<LifePlanPojo> list;
	public String SelectLifePlan(){
		Map<String, Object> selectMap = new HashMap<String, Object>();
		selectMap.put("studentId", studentId);
		try {
			list = lifePlanSV.selectByParameter(selectMap);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return SUCCESS;
	}
	public String getStudentId() {
		return studentId;
	}
	public void setStudentId(String studentId) {
		this.studentId = studentId;
	}
	public Boolean getIsSuccess() {
		return isSuccess;
	}
	public void setIsSuccess(Boolean isSuccess) {
		this.isSuccess = isSuccess;
	}
	public List<LifePlanPojo> getList() {
		return list;
	}
	public void setList(List<LifePlanPojo> list) {
		this.list = list;
	}
	
}
